package cn.wolfcode.wolf2w.domain;


import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
@Document("visit")
@ToString
public class Visit extends BaseDomain{


    private String nickname;  //昵称
    private String headImgUrl; //头像
    private String info;  //个性签名
    private String woId;    //关联wo用户的id
    private Integer totalView = 0;  //总访问量
    @Transient
    private Integer todayView = 0;

    //和访客对象集合
    private List<UserInfo> visitors=new ArrayList<>();

}
